import { createApp } from 'vue'
import App from './App.vue'
import './styles/reset.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "element-plus/theme-chalk/el-message.css"
import "element-plus/theme-chalk/el-message-box.css"

import { setupRouter } from './router'
import { setupStore } from './store'

function bootstrap() {
    const app = createApp(App);
    // router
    setupRouter(app)
    // store
    setupStore(app);
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component)
    }
    app.mount('#app')
}

bootstrap()
